/**
*
* @author Anastasiya
*
*/

#include "printing.h"

using namespace std;

const string Printer::MESSAGE_PROCESSING_STARTED = "Start file processing: ";

const string Printer::MESSAGE_TEST_STARTED = "Test started";
const string Printer::MESSAGE_TEST_ENDED = "Test ended";
const string Printer::MESSAGE_TEST_FAILED = "Test failed";

const string Printer::MESSAGE_ERROR = "Error: ";


Printer::Printer(const bool testMode){
	this->testMode = testMode;
}

void Printer::fileProcessingStarted(const string fileName) const{
	cout << MESSAGE_PROCESSING_STARTED << fileName << endl;
}

void Printer::testStarted() const{
	cout << MESSAGE_TEST_STARTED  << endl;
}

void Printer::testEnded() const{
	cout << MESSAGE_TEST_ENDED << endl;
}
void Printer::testFailed() const{
	cout << MESSAGE_TEST_FAILED << endl;
}

void Printer::logError(const string message) const{
	cout << MESSAGE_ERROR << message << endl;
}

void Printer::logEvent(const string messageEvent) const{
	if(!testMode){
		cout << messageEvent << endl;
	}
}